package com.example.LightningController;

import android.os.Parcel;

import java.util.ArrayList;

public class ZoneDetails implements Item{
	private String[] zoneDetails;
	private int ID;
	
	public ZoneDetails(String[] zoneDetails, int ID){
		this.zoneDetails = zoneDetails;
		this.ID = ID;
	}
	
	public String[] getZoneDetails(){
		return this.zoneDetails;
	}
	
	public ArrayList<String> getZoneDetailsArrayList(){
		ArrayList<String> details = new ArrayList<String>();
		for(String zoneDetail : this.zoneDetails){
			details.add(zoneDetail);
		}
		
		return details;
	}

	@Override
	public boolean isSection() {
		return true;
	}

	@Override
	public int getID() {
		return this.ID;
	}

    @Override
    public int describeContents() {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
